//
//  DDDevelopErrorTip.m
//  Dingdong
//
//  Created by 程强 on 16/11/23.
//  Copyright © 2016年 程强. All rights reserved.
//

#import "DDDevelopErrorTip.h"
#import "MBProgressHUD.h"


@implementation DDDevelopErrorTip
+ (void)showMessageHUD:(NSString *)msg delayHide:(NSTimeInterval)delay
{
    UIView *view = [UIApplication sharedApplication].keyWindow;
    MBProgressHUD *hud = [[MBProgressHUD alloc] initWithView:view];
    hud.contentColor = [UIColor blackColor];
    [hud setFrame:CGRectMake(100, 100, ScreenWidth-200, 80)];
    hud.label.text = msg;
    hud.mode = MBProgressHUDModeText;
    hud.removeFromSuperViewOnHide = YES;
    [view addSubview:hud];
    [hud showAnimated:YES];
    [hud hideAnimated:YES afterDelay:delay];
}
@end
